#ifndef PLAYER_H
#define PLAYER_H

#include <SFML/Graphics.hpp>
#include <string>

#define PS_START 0
#define PS_FREE_FALL 1
#define PS_SLOW 2
#define PS_GROUND 3
#define PS_DEAD 4
#define PS_OVER 5

class Player
{
private:
	sf::Image imgPlayer;
	sf::Image imgParachute;
	sf::Image imgHole;
	sf::Image imgHealt;
	sf::Image imgHealtBar;
	sf::Sprite spPlayer;
	sf::Sprite spParachute;
	sf::Sprite spHole;
	sf::Sprite spHealt;
	sf::Sprite spHealtBar;
	unsigned char spPoc;
	int healt;
	int height;
	unsigned char state;	
	double speed;
	double slow;
	int paraOpen;
	std::string name;
	unsigned char points;
	unsigned char place;	
public:
	Player(std::string playerName, unsigned char model);
	void nextState();
	sf::Sprite* getSprite(int worldHeight);
	void update();
	int getHeight();
	unsigned char getState();
	void setPoints(unsigned char value);
	void setPlace(unsigned char value);
	unsigned char getPoints();
	unsigned char getPlace();
};

#endif
